package com.ruoyi.chatmessage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * chatmessage对象 chatmessage
 * 
 * @author ruoyi
 * @date 2025-05-14
 */
public class Chatmessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long chatMessageId;

    /** 教师 */
    @Excel(name = "教师")
    private String sender;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String receiver;

    /** 信息 */
    @Excel(name = "信息")
    private String message;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long classId;

    public void setChatMessageId(Long chatMessageId) 
    {
        this.chatMessageId = chatMessageId;
    }

    public Long getChatMessageId() 
    {
        return chatMessageId;
    }

    public void setSender(String sender) 
    {
        this.sender = sender;
    }

    public String getSender() 
    {
        return sender;
    }

    public void setReceiver(String receiver) 
    {
        this.receiver = receiver;
    }

    public String getReceiver() 
    {
        return receiver;
    }

    public void setMessage(String message) 
    {
        this.message = message;
    }

    public String getMessage() 
    {
        return message;
    }

    public void setClassId(Long classId) 
    {
        this.classId = classId;
    }

    public Long getClassId() 
    {
        return classId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("chatMessageId", getChatMessageId())
            .append("sender", getSender())
            .append("receiver", getReceiver())
            .append("message", getMessage())
            .append("classId", getClassId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
